package com.zlict.admin.domain;

import com.zlict.common.annotation.Excel;
import com.zlict.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;

/**
 * 项目设备管理对象 project_device
 *
 * @author dzw
 * @date 2025-06-16
 */
public class ProjectDevice extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 项目主键
     */
    @Excel(name = "项目主键")
    private Long projectId;

    /**
     * 设备主键
     */
    @Excel(name = "设备主键")
    private Long deviceId;

    private List<Long> deviceIds;


    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public List<Long> getDeviceIds() {
        return deviceIds;
    }

    public void setDeviceIds(List<Long> deviceIds) {
        this.deviceIds = deviceIds;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("projectId", getProjectId()).append("deviceId", getDeviceId()).append("deviceIds", getDeviceIds()).append("createBy", getCreateBy()).append("updateBy", getUpdateBy()).append("createTime", getCreateTime()).append("updateTime", getUpdateTime()).append("isDelete", getIsDelete()).append("isEnable", getIsEnable()).toString();
    }
}
